package com.example.abilitydemo.slice;

import com.example.abilitydemo.ResourceTable;
import ohos.aafwk.ability.AbilitySlice;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Text;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

public class FooAbilitySlice extends AbilitySlice {
    public static final HiLogLabel loglabel = new HiLogLabel(HiLog.LOG_APP, 0x11102, "FooAbilitySlice");

    @Override
    public void onStart(Intent intent) {
        HiLog.info(loglabel, "FooAbilitySlice onStart start ....");

        super.onStart(intent);
        super.setUIContent(ResourceTable.Layout_ability_foo);
    }

    @Override
    public void onActive() {
        HiLog.info(loglabel, "FooAbilitySlice onActive start ....");
        super.onActive();
    }

    @Override
    public void onInactive() {
        HiLog.info(loglabel, "FooAbilitySlice onInactive start ....");
        super.onInactive();
    }

    @Override
    public void onBackground() {
        HiLog.info(loglabel, "FooAbilitySlice onBackground start ....");
        super.onBackground();
    }

    @Override
    public void onForeground(Intent intent) {
        HiLog.info(loglabel, "FooAbilitySlice onForeground start ....");
        super.onForeground(intent);
    }

    @Override
    public void onStop() {
        HiLog.info(loglabel, "MainAbilitySlice onStop start ....");
        super.onStop();
    }
}
